define([
	'jquery',
	'backbone',
	'app'
], function( $, Backbone, App ) {

	var Folder = Backbone.Model.extend({
		urlRoot: '/home',
		urlGet: '/getHome',
		urlSet: '/sethome',

		getAll: function(successMethod, context) {
			$.getJSON('assets/folders.json', function(models){
				context[successMethod](models);
			});
		},

		setFolderData: function( params, successMethod, errorMethod, context ) {
			name = params.name;
		}
	});

	return Folder;
});
